package com.tiancheng.trade.merchant.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.tiancheng.trade.commom.web.model.request.MerchantChannelRequestDTO;
import com.tiancheng.trade.commom.web.model.response.MerchantChannelResponseDTO;
import com.tiancheng.trade.merchant.model.MerchantPayReg;
import com.tiancheng.trade.merchant.model.OrgBusiness;
import com.tiancheng.trade.merchant.vo.merchant.QueryMerchantRegReqVO;
import com.tiancheng.trade.merchant.vo.merchant.QueryMerchantRegResVO;
import com.tiancheng.trade.merchant.vo.merchant.QueryOrgBusinessReqVO;
import com.tiancheng.trade.merchant.vo.merchant.QueryOrgBusinessResVO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface MerchantPayRegMapper extends MYBaseMapper<MerchantPayReg> {

    IPage<QueryMerchantRegResVO> queryPage(IPage<MerchantPayReg> page,
                                           @Param("c") QueryMerchantRegReqVO conditions);
    /**
     * 机构子商户信息查询
     *
     * @param orgPaymentChannelId 机构支付渠道集合
     * @return
     */
    List<MerchantChannelResponseDTO> queryOrgSubMerchant(@Param("orgPaymentChannelIds") List<Long> orgPaymentChannelId);
    List<MerchantChannelResponseDTO> querySubMerchant(@Param("list") List<MerchantChannelRequestDTO> list);

}
